<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String baseBath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<html>
<head>
    <title>Title</title>
</head>
<body>
<base href="<%=baseBath%>">
<%@include file="../common_css.jsp"%>
<form class="layui-form" style="width:80%;">
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">权限描述</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input userName"
                   lay-verify="required" name="describe"  >
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">权限名称</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input userName"
                   lay-verify="required" name="name"  >
        </div>
    </div>


    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">权限级别</label>
        <div class="layui-input-block">
                <select name="grade" disabled >
                    <option value="0" <c:if test="${grade==0}"> selected </c:if>>一级权限</option>
                    <option value="1" <c:if test="${grade==1}"> selected </c:if>>二级权限</option>
                    <option value="2" <c:if test="${grade==2}"> selected </c:if>>三级权限</option>
                </select>
     </div>
</div>

<div class="layui-form-item layui-row layui-col-xs12">
    <label class="layui-form-label">权限url</label>
    <div class="layui-input-block">
        <input type="text" class="layui-input userName"
               lay-verify="required" name="url"  >
    </div>
</div>

<!--
   添加根级菜单
-->
<input name="parent" type="hidden" value="${parent}"/>
<br/>
<div class="layui-form-item layui-row layui-col-xs12">
    <div class="layui-input-block">
        <button class="layui-btn layui-btn-lg" lay-submit=""
                lay-filter="addModule">确认
        </button>
        <button class="layui-btn layui-btn-lg layui-btn-normal">取消</button>
    </div>
</div>
</form>
<script type="text/javascript" src="com/js/module/add.js"></script>
</body>
</html>
